package com.sigmazero13.MKDummy.activites;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

import com.sigmazero13.MKDummy.R;

public class TopicActivity extends Activity {
	public static final String ARG_TEXT_ID = "arg_text_id";
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help_topic);
		
		Intent intent = getIntent();
		int contentTextId = intent.getIntExtra(ARG_TEXT_ID, R.string.help_default_content);
		
		TextView content = (TextView) findViewById(R.id.topic_text);
		content.setMovementMethod(LinkMovementMethod.getInstance());
		content.setText(Html.fromHtml(getString(contentTextId)));
	}
}
